package game.editer;

import hx.display.Box;

/**
 * 标题框组件
 */
@:build(hx.macro.UIBuilder.build("editerAssets/views/TitleFrame.xml"))
class TitleFrame extends Box {
	public var text(get, set):String;

	function set_text(value:String):String {
		this.title.data = value;
		this.title_bg.width = this.title.getTextWidth() + 10;
		return value;
	}

	function get_text():String {
		return this.title.data;
	}
}
